import { Column, Entity, Index } from "typeorm";

@Index("sys_user_role_pkey", ["roleId", "userId"], { unique: true })
@Entity("sys_user_role", { schema: "public" })
export class SysUserRole {
    @Column("bigint", { primary: true, name: "user_id" })
    userId!: string;

    @Column("bigint", { primary: true, name: "role_id" })
    roleId!: string;
}
